﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BO.Infrastructure.Config
{
    public class CacheExtensionsSettings
    {
        public readonly static bool EnableNewsDataCached = true;
        public static bool EnableDataCached
        {
            get
            {
                return ChannelVN.Cached.Config.CacheSettings.GetCurrentSettings().EnableDataCached;
            }

        }
        public static bool EnableCacheDependency
        {
            get
            {
                return ChannelVN.Cached.Config.CacheSettings.GetCurrentSettings().EnableCacheDependency;
            }
        }

        #region CacheTime ( in second )
        public static class CacheTime
        {
            public const int _30Days = 2592000;
            public const int _1Day = 86400;
            public const int _3Minutes = 180;
            public const int _15Minutes = 900;
            public const int _30Minutes = 1800;
            public const long _1Hour = 3600;
        }

        #endregion
    }
}
